package com.yyg.boot.repository;

import com.yyg.boot.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * @Author 一一哥Sun
 * @Date Created in 2020/4/20
 * @Description Description
 */
@Repository
public interface UserRepository  extends JpaRepository<User,Integer>,JpaSpecificationExecutor<User> {

    User findUserByCode(String code);

    User findByUsernameAndPassword(String username,String password);

}
